
public class D4 {
    public static void main(String[] args) {
        Employee e = new Employee("Baba");
        
        System.out.println(e.toString());
        e.setAge(10);
        System.out.println(e.toString());
    }
}

class Employee {
    String name;
    int age;
    String desination;
    double salary;

    public Employee(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setDesination(String str) {
        this.desination = str;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return " Name " + this.name + " Age " + this.age + " Designation " + this.desination + " Salary " + this.salary;
    }

}